package com.secxiot.provider.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 资料库
 */
@ApiModel
@Data
@ToString
public class    FilesStorageVo  implements Serializable {

    private static final long serialVersionUID = 7317797090522625458L;

    @ApiModelProperty(value = "资料库id", required = true)
    private Long id;

    @ApiModelProperty(value = "医疗医院id", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "医疗医院名称", required = true)
    private String hospitalName;

    @ApiModelProperty(value = " 标题", required = true)
    private String title;

    @ApiModelProperty(value = "附件code", required = false)
    private String filesCode;

    @ApiModelProperty(value = "附件集合", required = false)
    private List<FileLogVo> fileList;

    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @ApiModelProperty(value = "备注", required = false)
    private String remark;

    @ApiModelProperty(value = "发布人Id", required = true)
    private Long publishUserId;

    @ApiModelProperty(value = "发布人姓名", required = true)
    private String publishUserName;

    @ApiModelProperty(value = "发布人科室", required = true)
    private String deptName;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
